$def with(post, partner, expire, sign, subscribed)

$:frender.header(tab = 1, title = u'%s - %s' % (moneyfmt(post.price),post.title), scripts = ['libs/fancybox/jquery.fancybox-1.3.4.pack.js','libs/jquery.easing-1.3.pack.js','libs/jquery.mousewheel-3.0.4.pack.js','discount.js'])

<script type="text/javascript">
    $$(function () {
        $$('.art_cnt a').fancybox({'showCloseButton': false});
        $$('[directing=1]').attr_tag({'position':'append', 'tag':'directing'});
        $$('[lightning=1]').attr_tag({'position':'append'});
        $if not subscribed:
            $$.subscribe(3000);
    });
</script>

<div id="content">
	<div class="wrap">
		<div class="side_l_box">
			$:frender.discounts.left_nav(depart_alias_by_id(post.depart_id) or (post.lightning and 'lightning' or (post.directing and 'directing' or travel_type_alias(post.type))))
			<!--left_nav End-->
		</div>
		<!--side_l_box End-->
		<div class="cnt_box">
			<div class="art_box">
				<h2 class="art_tit" directing="$post.directing" lightning="$post.lightning">$moneyfmt(post.price, initial = post.is_initial_price) -- $:post.title</h2>
                <div class="rating" rating="$post.price_index" ratio="2"></div>
				<div class="art_cnt">
                    $if post.media_id:
                        $for mid in post.media_id.split(','):
                            <a href="$:get_media_url(long(mid), 0)" rel="gallery"><img src="$:get_media_url(long(mid), 3)" title="$post.title" /></a>
                </div>
				<!--art_cnt End-->
				<div class="art_info">
                    $if expire:
                        <p style="color:#cc0000;"><strong>$:expire</strong></p>
                    $if post.depart_id:
                        <p><strong>出发城市：</strong>$depart_name_by_id(post.depart_id)</p>
                    $if post.lightning:
                        <p><strong>发布日期：</strong>$post.date_created.strftime('%Y年%m月%d日')</p>

                    $:post.content
                    <p id="how-to-book">
                        <a href="/discounts/redirect/$post.id" class="eml_rss_btn" rel="external nofollow" onclick="_gaq.push(['_trackPageview', '/_trc/discount/$partner.name']);" target="_blank"><b>点击此处</b></a> 
                        <span>前往 <b>$:partner.name</b> 在线预订，享受此优惠</span>
                    </p>
                    <p class="tline">
                        $if post.type == 2:
                            <strong>【寻宝图跟团特惠评测说明】</strong>
                            <ul>
                                <li>评测原则：只筛选经诚信认证的旅行社，不考虑低品质团购线路，不考虑强制购物安排线路。作为第三方的旅游情报网站，我们不参与预订交易，保证中立客观的评测。</li>
                                <li>评测指标：旅行社资质、价格比较、航班与行程舒适度、行动自由度、酒店品质等。</li>
                                <li>特别提醒：部分特惠信息是限时抢购促销活动，随时会恢复价格。</li>
                            </ul>
                        $elif post.type == 3:
                            <strong>【寻宝图航班特惠评测说明】</strong>
                            <ul>
                                <li>评测原则：只搜集航空公司认可的特价促销信息，以确保特惠能得以实施。作为第三方的旅游情报网站，我们不参与预订交易，保证中立客观的评测。</li>
                                <li>评测指标：价格比较、航班档期、航空公司服务级别等。</li>
                                <li>特别提醒：部分特惠信息是限时抢购促销活动，随时会恢复价格。</li>
                            </ul>
                        $else:
                            <strong>【寻宝图酒店特惠评测说明】</strong>
                            <ul>
                                <li>评测原则：只搜集四星以上的酒店与精品度假村特惠，只筛选经诚信认证的预订网站或官方直销网站，不考虑差评酒店的低价促销。作为第三方的旅游情报网站，我们不参与预订交易，保持中立客观的评测。</li>
                                <li>评测指标：酒店品质、价格比较、折扣力度、特色、额外赠送。</li>
                                <li>特别提醒：部分特惠信息是限时抢购促销活动，随时会恢复价格。</li>
                            </ul>
                    </p>
				</div>
				<!--art_info End-->

			</div>
			<!--art_box End-->
		</div>
		<!--cnt_box End-->
		<div class="side_r_box">
			<div class="idx_wp_box">
                <h2 class="idx_wp_tit">此优惠由<a href="/discounts/redirect/$post.id" rel="external nofollow" onclick="_gaq.push(['_trackPageview', '/_trc/partner/$partner.name']);" target="_blank">&lt;$partner.name&gt;</a>提供</h2>
				<ul class="reason_lst">
                    <li class="center img100"><a href="/discounts/redirect/$post.id" rel="external nofollow" onclick="_gaq.push(['_trackPageview', '/_trc/discount/$partner.name']);" target="_blank"><img src="$get_media_url(partner.logo, 3)" /></a></li>
                    <li class="center"><a href="/discounts/redirect/$post.id" rel="external nofollow" onclick="_gaq.push(['_trackPageview', '/_trc/discount/$partner.name']);" target="_blank">点击此处享受优惠</a></li>
                    $if post.booking_tips:
                        <li>$:post.booking_tips</li>
                </ul>
            </div>
			<!--idx_wp_box End-->
			<div class="idx_wp_box">
                <p class="ask_sec"><strong>喜欢就分享</strong></p>
                <p class="t_c">
                    <!-- JiaThis Button BEGIN -->
                    <div id="ckepop">
                        <a class="jiathis_button_qzone"></a>
                        <a class="jiathis_button_tsina"></a>
                        <a class="jiathis_button_tqq"></a>
                        <a class="jiathis_button_renren"></a>
                        <a class="jiathis_button_kaixin001"></a>
                        <a class="jiathis_button_douban"></a>
                        <a href="http://www.jiathis.com/share?uid=1512131" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
                    </div>
                    <script type="text/javascript">
                        var jiathis_config = {
                            data_track_clickback:true,
                            url: 'http://xunbaotu.com/discounts/$post.id?id=$sign',
                            title: '$moneyfmt(post.price) - $post.title'
                        };
                    </script>
                    <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1512131" charset="utf-8"></script>
                    <!-- JiaThis Button END --> 
                </p>
			</div>
            <!--
			<div class="idx_wp_box">
				<p class="ask_sec">想看看有哪些微博上的朋友也要去<span>马尔代夫</span>吗？</p>
				<p class="t_c"><a href="#" class="go_btn"><b>立即查看</b></a></p>
			</div>
            -->
			<!--idx_wp_box End-->
		</div>
		<!--side_r_box End-->
	</div>
	<!--wrap End-->
</div>
<!--content End-->
<script type="text/javascript">
    $$(function () {
        $$('.rating').stars();
    });
</script>
$:frender.footer()
